package com.derbysoft.nuke.configkeeper.domain;

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.util.Map;

@Data
@Builder
@AllArgsConstructor
@DynamoDBTable(tableName = "CK_CONFIG")
public class Config {

    public Config() {
        // only for mapper
    }

    @DynamoDBHashKey(attributeName = "source")
    private String source;
    @DynamoDBAttribute(attributeName = "configs")
    private Map<String, String> configs;
    @DynamoDBAttribute(attributeName = "timestamp")
    private Long timestamp;

}
